﻿@model ViewModel.HomeIndex
<div class="top">
    <div class="top-content">
        <div class="logo">
            <a href="/"></a>
        </div>
        <div style="text-align: right;">
            <img src="/Content/images/466993.jpg" height="78" />
        </div>
    </div>
</div>
<div class="main">
    <div class="main_left">
        <div class="secnav">
            <ul class="tab">
                <li class="selected"><a href="#">最新</a></li>
                <li><a href="#">最热</a></li>
            </ul>
        </div>
        <div class="list_wrap">
            <ul class="list">
                @foreach (CMSModel.Doc doc in Model.newDocs)
                {
                    <li>
                        <div class="score_wrap">
                            <div class="score">
                                @doc.ReadCount
                            </div>
                            <div class="txt">
                                热度
                            </div>
                        </div>
                        <div class="list_txt">
                            <h3>
                                <a href="/Article/@doc.Id" target="_blank">@doc.Title</a></h3>
                            <div class="summary">
                                @doc.Summary
                            </div>
                            <div class="meta">
                                <em>分类：@doc.Category.CategoryName</em> <em>时间：@doc.Pdate.ToLongDateString()</em> <em>作者: @doc.User.Nickname</em> <em>阅读(@doc.ReadCount)</em>
                            </div>
                        </div>
                        <div class="clear">
                        </div>
                    </li>
                }
            </ul>
            共有122个文章
                <div id="pageZone">
                    <span class="current">1</span> <span><a href="/Index?pageIndex=2">2</a></span> <span>
                        <a href="/Index?pageIndex=3">3</a></span> <span><a href="/Index?pageIndex=4">4</a></span>
                    <span><a href="/Index?pageIndex=5">5</a></span> <span><a href="/Index?pageIndex=6">6</a></span>
                    <span><a href="/Index?pageIndex=7">7</a></span> <span><a href="/Index?pageIndex=8">8</a></span>
                    <span>...</span> <span><a href="/Index?pageIndex=13">13</a></span> <span class='Disabled'>
                        <a href="/Index?pageIndex=2">后一页></a></span>
                </div>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="main_right">
        <div class="rightbox">
            <h3 class="nborder">推荐阅读</h3>
            <ul class="list_recommend">
                @foreach (CMSModel.Doc doc in Model.recommendDocs)
                {
                    <li><a href="/Article/ArticleInfo/@doc.Id"><span class="icon_list"></span>@doc.Title</a></li>
                }
                @*        9条*@
            </ul>
            <div class="clear">
            </div>
        </div>
        <div class="rightbox">
            <h3>最热阅读</h3>
            <ul class="list_recommend">
                @foreach (CMSModel.Doc doc in Model.hotDocs)
                {
                    <li><a href="/Article/ArticleInfo/@doc.Id"><span class="icon_list"></span>@doc.Title</a></li>
                }
                @*        9条*@
            </ul>
            <div class="clear">
            </div>
        </div>
        <div class="rightbox">
            <h3>技术专题</h3>
            <ul class="list_recommend">
                @foreach (CMSModel.SpecialSubject subject in Model.specialSubject)
                {
                    <li><a href="/Article/ArticleInfo/@subject.Id"><span class="icon_list"></span>@subject.SubjectName</a></li>
                }
                @*        9条*@
            </ul>
            <div class="clear">
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="clear">
    </div>
</div>
